About

  • It is the structural implementation of a program.

  • "Ways of managing states in a program".

  • Paradigms .

Imperative
  • Based on giving instructions to the computer to modify the program’s state.

  • The focus is on how things should be done, using sequential commands, loops, and variable assignments.

  • Subsets :

    • Procedural.

    • OOP.

  • Examples :

    • Assembly, C, Python (when used imperatively).

Declarative
  • Focuses on what should be done, not how. The programmer describes the desired results without specifying the exact steps.

  • Subsets :

    • Functional.

    • Logical.

    • Database.

  • Examples :

    • HTML, CSS.

    • SQL, LINQ.